package com.xuhai.movie.mapper;

import com.xuhai.movie.bean.Category;
import com.xuhai.movie.bean.Movie;
import com.xuhai.movie.bean.MovieCategory;

import java.util.List;

public interface MovieCategoryMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MovieCategory record);

    int insertSelective(MovieCategory record);

    MovieCategory selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MovieCategory record);

    int updateByPrimaryKey(MovieCategory record);

    List<Movie> getMovieListByCategoryId(Integer categoryId);

    List<Category> getCategoryListByMovieId(Integer movieId);

    int batchInsert(List<MovieCategory> movieCategoryList);

    int deleteByMovieId(Integer movieId);
}
